package com.zrrd.runnableDemo01;

/**
 * @author WanJl
 * @version 1.0
 * @title MyRunnableDemo
 * @description
 * @create 2024/6/16
 */
public class MyRunnableDemo {

    public static void main(String[] args) {
        //3、创建MyRunnable类的对象
        MyRunnable myRunnable = new MyRunnable();
        //4、创建Thread类的对象，把MyRunnable对象作为构造方法的参数
        Thread t1 = new Thread(myRunnable);
        Thread t2 = new Thread(myRunnable);
        //5、启动线程
        t1.start();
        t2.start();
    }
}
